<?php
define('ROOT', '../');
include_once (ROOT . 'includes/common.php');
$new_cookie = md5(uniqid() . rand(1, 1000));
$ip			= real_ip();
$date		= date("Y-m-d H:i:s");
$DB->query("update " . DBQZ . "_user set cookie='".$new_cookie."',lastip='$ip',lasttime='$date' where uid='".$userrow['uid']."'");
setcookie(DBQZ . "_cookie", "", -1, '/');
msg("退出成功!", "login.php");
?>